$(document).ready(function (){
    let info_a=$('.mt .tab >a')
    let content=$('.main >.contents ')

    console.log(content)
    function doCLick(e){
        var id= document.getElementById(`${e}`);//选中元素
        id.style.display="none";
}
    info_a.click(function (){
        let index=info_a.index(this)
        console.log(index)
        info_a.removeClass('active')
        info_a.eq(index).addClass('active')

        content.removeClass('show')
        console.log(index)
        content.eq(index).addClass('show')


    })

})